# .log文件
filePath:str='D:/360/BBSpread_20201104.LProd_BBS.log'

# 把文本load进内存
with open(filePath,'r',encoding="utf-8") as f:
    a=1
    line:str=f.readline()
    while line:
        print(line,type(line),a)
        line=f.readline()
        a+=1